package com.imooc.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author 逸尘风清
 * @date 2021/5/6
 * @time 16:54
 * 描述：
 */
// 在swagger文档中不显示该控制器接口
@ApiIgnore

@RestController
public class HelloController {
    final static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @GetMapping("/hello")
    public Object hello(){
        logger.info("info:hello");
        return "Hello World";
    }
}
